<?php

namespace App\Lib\_Validator;

class AuthValidator extends BaseValidator
{
    public static function login(array $data)
    {
        return self::make($data, [
            'mobile' => 'required|mobile',
            'code' => 'required|code',
        ]);
    }

    public static function register(array $data)
    {
        return self::make($data, [
            'mobile' => 'required|mobile',
        ]);
    }
}